package game;

import java.awt.Graphics2D;
import java.awt.Point;
import java.awt.Rectangle;
import java.awt.event.MouseEvent;

public class Instrucoes extends Scene 
{
float time;
	
	Background background;
	
	int countImages = 0;
	
	public Instrucoes()
	{
		background = new Background(5,new Point(0,0), new Point(800,600));
		background.setImage(5);
	}

	public void update()
	{
		if (new Rectangle(89, 553, 195, 39).contains(Mouse.getInstance().getPositionMouse().getX(),
				Mouse.getInstance().getPositionMouse().getY()))
		{
			if (Mouse.getInstance().isMousePressed(MouseEvent.BUTTON1))
				SceneManager.changeScene(0);
		}
	}
	
	public void draw(Graphics2D g2d)
	{
		background.draw(g2d);
	}
}
